#include <iostream>
using namespace std;
#include "circle3.h"

const double Circle3::pi = 3.1415926;
Circle3::Circle3(int xValue, int yValue, double radiusValue)
{
	x = xValue;
	y = yValue;
	setRadius(radiusValue);
}

void Circle3::setRadius(double value)
{
	radius = (value < 0.0) ? 0.0 : value; 
}
double Circle3::getRadius() const
{
	return radius;
}
double Circle3::getDiameter() const
{
	return (radius * 2);
}
double Circle3::getCircumference() const
{
	return (pi * getDiameter());
}
double Circle3::getArea() const
{
	return (pi * radius * radius);
}
void Circle3::print() const
{
	cout << "Centern" << "[" << x << "," << y << "]" << " Radius = " << radius << "\n";
}
